import request from ".";

//查询用户信息
export function showUser(){
    return request({
        url : '/user',
        method : 'get',
    })
}

//修改用户记录
export function editUser(data){
    return request({
        url : '/user',
        method : 'put',
        data : data,
    })
}

export function login(data){
    return request({
        url : '/indexUser/login',
        method : 'post',
        data : data,
    })
}
// 退出登录接口
export function logout(){
    return request({
        url : '/indexUser/logout',
        method : 'post'
    })
}
// 注册接口
export function register(data){
    return request({
        url : '/indexUser/register',
        method : 'post',
        data : data,
    })
}
// 获取图片验证码
export function getCaptcha(){
    return request({
        url : '/captcha',
        method : 'post',
    })
}

//获取手机验证码
export function phoneCaptcha(data){
    return request({
        url : '/phoneCaptcha',
        method : 'post',
        data : data,
    })
}


//步骤一验证账户
export function confirmAccountByPhone(data){
    return request({
        url : '/indexUser/confirmAccountByPhone',
        method : 'post',
        data : data,
    })
}

//步骤二安全认证
export function SecurityCertifications(data){
    return request({
        url : '/indexUser/SecurityCertifications',
        method : 'post',
        data : data,
    })
}

//步骤三修改密码
export function resetPassword(data){
    return request({
        url : '/indexUser/resetPassword',
        method : 'post',
        data : data,
    })
}





